const Router = require('koa-router');
const {db, Op,QueryTypes } = require("../../models/db");
const tool = require("../../tools/tool");
const router = new Router();
// 购物车一个商户的
router.post('/app/webinfo', async ctx => {

    let mobile = ctx.request.body.mobileSend
    let email = ctx.request.body.emailSend
    let wx = ctx.request.body.wxSend
    let from = ctx.request.body.from

    await db.models['webinfo'].create({
        mobile,
        email,
        wx,
        from,
        ctime: tool.getTime()
    })
    return ctx.suc('保存成功')

})
// 拜访记录


module.exports = router;
